import request from '@/utils/request'

// 查询工单列表
export function listWork_order(query) {
  return request({
    url: '/order/work_order/list',
    method: 'get',
    params: query
  })
}

// 查询工单详细
export function getWork_order(id) {
  return request({
    url: '/order/work_order/' + id,
    method: 'get'
  })
}

// 新增工单
export function addWork_order(data) {
  return request({
    url: '/order/work_order',
    method: 'post',
    data: data
  })
}

// 修改工单
export function updateWork_order(data) {
  return request({
    url: '/order/work_order',
    method: 'put',
    data: data
  })
}

// 删除工单
export function delWork_order(id) {
  return request({
    url: '/order/work_order/' + id,
    method: 'delete'
  })
}
